//
//  MCCommonRequest.m
//  MCNetworking_Example
//
//  Created by 辛金巳火戊己土 on 2020/8/17.
//  Copyright © 2020 辛金巳火戊己土. All rights reserved.
//

#import "MCCommonRequest.h"

@implementation MCCommonRequest

#pragma mark - 获取userToken
+ (void)getUserTokenWithUUID:(NSString *)uuid resultBlock:(RequestResponse)resultBlock {
    NSString *url = [NSString stringWithFormat:@"pub/v1/token/getToken/CloudSteward_%@", uuid];
    [MCNetworking GET:url networkBlock:^(MCCommonResult *result, id responseObject) {
        [MCResponseTool analyzeDataWithResult:result response:responseObject modelClass:nil analyzedBlock:^(MCAnalyzedResult *result, id data) {
            // 自定义一层处理特殊情况
            // [CSCommonRequest checkAnalyzedResult:result];
            if (resultBlock) { resultBlock(result, data); }
        }];
    }];
}

@end
